package org.geektimes.projects.user.sql;

import javax.sql.DataSource;

public class DataSourceDBConnectionManager {

    private static final DataSourceDBConnectionManager hungrySingleton;

    static {
        hungrySingleton = new DataSourceDBConnectionManager();
    }

    private DataSourceDBConnectionManager(){}

    public static DataSourceDBConnectionManager getInstance(){
        return  hungrySingleton;
    }

    private DataSource dataSource;

    public void setDataSource(DataSource dataSource) {
        this.dataSource = dataSource;
    }

    public DataSource getDataSource() {
        return this.dataSource;
    }

}
